package com.udi.project.business.utils.excel.service.impl;


import com.udi.project.business.utils.excel.mapper.ExcelMapper;
import com.udi.project.business.utils.excel.service.ExcelService;
import com.udi.project.business.utils.excel.daomain.LogoExcel;
import com.udi.project.business.utils.excel.daomain.deviceClinicalExcel;
import com.udi.project.business.utils.excel.daomain.devicePackageExcel;
import com.udi.project.business.utils.excel.daomain.deviceStorageExcel;
import com.udi.project.business.utils.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ExcelServiceImpl implements ExcelService {

    /** excel数据库交互*/
    @Autowired
    private ExcelMapper excelMapper;

    @Autowired
    private RedisUtils redisUtils;




    /**
     * @param id 标识信息表的di_id
     * @Description: DI申报表格数据源
     * @return: java.util.List<com.udi.project.business.excel.daomain.LogoExcel>
     * @Date: 2021/8/18 10:06
     */
    @Override
    public List<LogoExcel> selectLogo(List<String> id) {
        return excelMapper.selectLogo(id);
    }

    /**
     * @param id 标识信息表的di_id
     * @Description: 临床尺寸信息表格数据源
     * @return: java.util.List<com.udi.project.business.excel.daomain.ClinicalExcel>
     * @Date: 2021/8/18 10:35
     */
    @Override
    public List<deviceClinicalExcel> selectClinical(List<String> id) {
        return excelMapper.selectClinical(id);
    }

    /**
     * @param id 标识信息表的di_id
     * @Description: 包装信息数据源
     * @return: java.util.List<com.udi.project.business.excel.daomain.PackagExcel>
     * @Date: 2021/8/18 10:49
     */
    @Override
    public List<devicePackageExcel> selectPackage(List<String> id) {
        return excelMapper.selectPackage(id);
    }

    @Override
    public List<deviceStorageExcel> selectStorage(List<String> id) {
        return excelMapper.selectStorage(id);
    }
}
